"use strict";

import axios from "axios";

// 创建 axios 实例
const axiosInstance = axios.create({
  baseURL: '/api',
  timeout: 10000
});

// 定义插件
const AxiosPlugin = {
  install(app) {
    app.config.globalProperties.$axios = axiosInstance;
  }
};

export default axiosInstance;
export { AxiosPlugin };
